package com.aiwiown.face.response;

import com.aiwiown.face.ApiResponse;
import com.aiwiown.face.domain.alyze.SkinanAdvancedResult;
import com.aiwiown.face.domain.detect.FaceRectangle;
import com.aiwiown.face.internal.mapping.ApiField;
import com.aiwiown.face.internal.mapping.ApiListField;

import java.util.List;

/**
 * @ClassName : SkinanAlyzeAdvancedResponse
 * @Description :
 * @Author : dbin0123
 * @Date: 2020-05-23 12:48
 */
public class SkinanAlyzeAdvancedResponse extends ApiResponse {
    private static final long serialVersionUID = 1905643482002597922L;

    /**
     * 人脸皮肤分析的结果，具体包含的返回值信息见下表
     */
    @ApiField(value = "result")
    private SkinanAdvancedResult result;
    /**
     * 表示影响计算结果的干扰因素.
     * 干扰因素可能有:
     * imporper_headpose：头部角度不当 (判断条件roll,yaw,pitch超过[-45,45])
     * 当有影响因素存在时返回（有影响即返回相应字段）：["improper_headpose"]
     * 无影响因素的返回：[]
     */
    @ApiListField(value = "warning")
    private List<String> warning;
    /**
     * 脸矩形框的位置，包括以下属性
     */
    @ApiField(value = "face_rectangle")
    private FaceRectangle faceRectangle;

    public SkinanAdvancedResult getResult() {
        return result;
    }

    public void setResult(SkinanAdvancedResult result) {
        this.result = result;
    }

    public List<String> getWarning() {
        return warning;
    }

    public void setWarning(List<String> warning) {
        this.warning = warning;
    }

    public FaceRectangle getFaceRectangle() {
        return faceRectangle;
    }

    public void setFaceRectangle(FaceRectangle faceRectangle) {
        this.faceRectangle = faceRectangle;
    }
}
